package org.pms.test;

import org.pms.dao.ProductDao;
import org.pms.dao.impl.ProductDaoImpl;
import org.pms.entity.Product;

import java.util.List;

/**
 * 测试查询
 *
 * @Author zqx
 * @Date 2023-12-28
 */
public class MainTest01 {
    public static void main(String[] args) {
        ProductDao productDao = new ProductDaoImpl();
        List<Product> list = productDao.selectAll();
        for (Product p : list) {
            System.out.println(p.getName() + "," + p.getPrice());
        }
    }
}
